<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
            text-align 设置文本的水平方向
            left(默认) 左
            center 中
            right 右
            行效果不明显
            对图片、行标签、块标签（不能设置样式）都有效
        */
        .d1, span {
            border: 1px solid red;
            text-align: left;
            text-align: center;
            text-align: right;
        }
        table {
            width: 200px;
            height: 200px;
        }
        table, td {
            border: solid;
        }
        td {
            text-align: center;
        }
        ul li {
            width: 80px;
            height: 40px;
            border: 1px solid red;
            vertical-align: middle;
            text-align: center;
            line-height: 40px;
        }
    </style>
</head>
<body>
    <div class="d1">
        hello 杰克
        <img src="E:\code\html\20230927\1.jpeg" width="100px"><br>
        <span>11111</span> <br>
        <div>222222</div>
        <div style="width: 50px;height: 50px;border: 1px solid red;">1111</div>
    </div>
    <span>hello 杰克</span>
    <table>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>2</td>
            <td>2</td>
            <td>2</td>
        </tr>
        <tr>
            <td>3</td>
            <td>3</td>
            <td>3</td>
        </tr>
    </table>
    <ul>
        <li>新闻</li>
        <li>体育</li>
        <li>娱乐</li>
        <li>科技</li>
    </ul>
</body>
</html>